import request from '@/utils/request'

//动态举报
export const dynamicReportService=(dynamicId,content)=>{
    return request.post('/dynamic/report',{
        dynamicId,
        content
    })
}

//评论举报
export const commentReportService=(commentId,content)=>{
    return request.post('/comment/report',{
        commentId,
        content
    })
}

//用户举报
export const userReportService=(userId,content)=>{
    return request.post('/user/update/report',{
        userId,
        content
    })
}

//获取所有用户举报
export const getUsersReportService=(pageNum,pageSize)=>{
    return request.get('/handing/user/all',{
        params:{
            pageNum,
            pageSize
        }
    })
}

//获取所有动态举报
export const getDynamicsReportService=(pageNum,pageSize)=>{
    return request.get('/handing/dynamic/all',{
        params:{
            pageNum,
            pageSize
        }
    })
}

//获取所有动态举报
export const getCommentsReportService=(pageNum,pageSize)=>{
    return request.get('/handing/comment/all',{
        params:{
            pageNum,
            pageSize
        }
    })
}

//同意用户举报
export const consentUserReportService=(handingId)=>{
    return request.post('/handing/user/agree',{},{
        params:{
            handingId
        }
    })
}

//同意动态举报
export const consentDynamicReportService=(handingId)=>{
    return request.post('/handing/dynamic/agree',{},{
        params:{
            handingId
        }
    })
}

//同意评论举报
export const consentCommentReportService=(handingId)=>{
    return request.post('/handing/comment/agree',{},{
        params:{
            handingId
        }
    })
}

//删除用户举报
export const deleteUserReportService=(handingId)=>{
    return request.delete('/handing/user/delete',{
        params:{
            handingId
        }
    })
}

//删除动态举报
export const deleteDynamicReportService=(handingId)=>{
    return request.delete('/handing/dynamic/delete',{
        params:{
            handingId
        }
    })
}

//删除评论举报
export const deleteCommentReportService=(handingId)=>{
    return request.delete('/handing/comment/delete',{
        params:{
            handingId
        }
    })
}

